#pragma once
#include"Defaul.h"
class Animation;
class Bullet;
class Player;

extern Atlas* img_enemy_shadow;
extern Atlas* atlas_enemy_left;
extern Atlas* atlas_enemy_right;

class Enemy
{
public:
	Enemy();

	bool CheckBulletCollision(const Bullet& bullet);
	bool CheckPlayerCollision(const Player& player);
	bool CheckAlive();

	void Move(const Player& player);
	void Draw(int delta);
	void Hurt();

	inline int GetPoint_X() const { return Enemy_pos_x; }
	inline int GetPoint_Y() const { return Enemy_pos_y; }
private:
	const int Enemy_WIDE = 80;
	const int Enemy_HEIGHT = 80;
	const int SHADOW_WIDTH = 48;
	int Enemy_SPEED = 2;

	Animation* img_shadow;
	Animation* anim_left_Enemy;
	Animation* anim_right_Enemy;
	int Enemy_pos_x =0;
	int Enemy_pos_y =0;

	bool is_move_up = false;
	bool is_move_down = false;
	bool is_move_right = false;
	bool is_move_left = false;

	bool facing_left = false;
	bool is_alive = true;
};

